/*
 * ActivityMannagerServer.h
 *
 *  Created on: 2021年9月7日
 *      Author: vicent-PC
 */

#ifndef MAIN_ROSE_ACTIVITYMANNAGERSERVER_H_
#define MAIN_ROSE_ACTIVITYMANNAGERSERVER_H_
#include <algorithm>
#include <map>
#include <string>

#include "Activity.h"
#include "SystemServer.h"

class ActivityMannagerServer {
   public:
    ActivityMannagerServer();
    virtual ~ActivityMannagerServer();
    static ActivityMannagerServer* getInstance() {
        if (m_pInstance == nullptr) m_pInstance = new ActivityMannagerServer();
        return m_pInstance;
    }

    void startActivity(Activity activity);
    void install(Activity* activity, std::string appName);

   public:
    static ActivityMannagerServer* m_pInstance;

   private:
    SystemServer mSystemServer;
    // std::map<int, std::string> mActivityMap;
};

#endif /* MAIN_ROSE_ACTIVITYMANNAGERSERVER_H_ */
